package xyz.yuzegod.megawalls.listener;

import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import xyz.yuzegod.megawalls.MegaWalls;

public abstract class BaseListener implements Listener
{
    private final MegaWalls plugin;
    
    public BaseListener(final MegaWalls plugin) {
        this.plugin = plugin;
        plugin.getServer().getPluginManager().registerEvents((Listener)this, (Plugin)plugin);
    }
    
    public MegaWalls getPlugin() {
        return this.plugin;
    }
}
